package com.si3.controlador;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;
import org.springframework.web.servlet.view.RedirectView;

import com.si3.modelo.Login;

public class CloseSesionController extends AbstractController
{
   
   public CloseSesionController()
   {
   }
   
   protected ModelAndView handleRequestInternal(
           HttpServletRequest request,
           HttpServletResponse response) throws Exception
   {	   
	   ModelAndView mv;
       request.getSession().invalidate();

       mv = new ModelAndView(new RedirectView("index.htm"));   
       return mv;
   }
}
